//统一管理项目接口的模块
//引入二次封装的axios
import requests from "./ajax";

// 用户注册 /mind_design/user/register
export const reqUserRegister = (data) => requests({url:'/mind_design//user/register', data, method: 'POST'})

// 用户登录 /mind_design/login
export const reqUserLogin = (data) => requests({url:'/mind_design/login',data, method: 'POST'}) 

// 退出登录 /mind_design/logout
export const reqLoginOut = () => requests({url:'/mind_design/logout', method: 'POST'})

// 新增文章 /mind_design/mind/save   POST
export const reqSaveOrUpdateList = (data) => requests({url:'/mind_design/mind/save',data,method: 'POST'})

// 查询所有文章 /mind_design/mind/all
export const reqGetAllLists =()=>requests({url:'/mind_design/mind/all', method: 'GET'})

